const int LED_Pin = 3;
const int pot = A3;
int Time = 0;

void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
}

void loop() {
  // put your main code here, to run repeatedly:
  for (int i = 0; i < 256; i += 5) {
    analogWrite(LED_Pin, i);
    delay(analogRead(pot) / 10);
  }
  for (int i = 255; i > -1; i -= 5) {
    analogWrite(LED_Pin, i);
    delay(analogRead(pot) / 10);
//    if (i == 0) {
//      Serial.println(millis());
//    }
  }
}
